<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="../skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="{url("?module=group&action=feed&groupid=$groupid")}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>


<link href="skin/modal.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="images/js/jqModal.js"></script>
<script type="text/javascript" src="{$M[url]}images/js/space.js"></script>
</head>
<body>

{template 'header.html'}


<div class="container">
	
     
    <div class="main topic"> 
    	
            
     {template 'tab.html','group'}
     
        <div class="mod">
        	
            <div class="body">
            	创建于{date('Y-m-d',$inputtime)} &nbsp; 组长：<a href="{url("?module=space&action=$userid")}">{username($userid)}</a>
                <p class="alert">{$content}</p>
            </div>
        </div>
        
        
        <style>
		 .topic table{ border:0; width:100%;}
		 .topic table td{ border:0; border-bottom:#eee solid 1px; line-height:30px;}
		</style>
        <div class="mod">
          <div class="head">{$title}最近小组话题 <a class="button button-mini" href="./index.php?module=group&file=topic&action=add&groupid={$groupid}"><i class="icon-leaf"></i>发表</a> </div>
           
           <div class="body">
            <table width="613" border="1">
              <tr>
                <td width="50%">话题</td>
                <td width="15%">作者</td>
                <td width="10%">点击</td>
                <td width="10%">回复</td>
                <td width="15%" align="right">发布时间</td>
              </tr>
              {get sql="SELECT * FROM `table_group_topic` WHERE groupid = $groupid and status=99 ORDER BY topicid DESC" rows="20" page="$page"}
              <tr>
                <td><a href="{url($r[url])}" target="_blank"><i class="icon-fire"></i>{str_cut($r[title],36)}</a></td>
                <td><a target="_blank" href="{url("?module=space&userid=$r[userid]")}" title="{username($r[userid])}"><img align="absmiddle" src="{thumb(avatar($r[userid]),24,24)}"/></a></td>
                <td>{$r[hits]}</td>
                <td>0</td>
                <td align="right">{date('Y-m-d',$r[updatetime])}</td>
              </tr>
              {/get}
            </table>
            <p><a href="{url("?module=group&action=discussion&groupid=$groupid")}">更多小组讨论</a></p>
           </div>
    	</div>
    
  </div>
    
    
    <div class="aside">
    	
        <style>
			.ava{ height:auto; overflow:hidden; margin:0 0 10px 0;}
			.ava img{ float:left; display:inline; width:80px; height:80px;}
			.ava p{ margin:0 0 0 110px;}
		</style>
        <div class="mod">
        	<div class="head">小组资料</div>
            <div class="body ava">
                <div class="well">
                	<img src="{$thumb}" class="thumbnail" height="48" width="48"/>
                    <p>{$title}</p>
                    <p>{$description} ... <a href="{url("?module=group&action=introduce&groupid=$groupid")}">详细</a>&gt;&gt;</p>
                    <br class="clear"/>
                </div>
            </div>
        </div>
        
   
        
        
        <div class="mod">
            <div class="head">{$title}组长</div>
            <div class="body users">
          		{$title}网站组长（网络小组长）正在热烈招募中，赶快来申请吧!<br/>
                <p><a class="button" rel="nofollow" href="{url("?module=member&action=register")}">立即申请</a></p> 
            </div>
        </div>
         
         <div class="mod">
            <div class="head"><span>会员列表</span><a href="{url("?module=group&action=member&groupid=$groupid")}">更多</a></div>
            <ul class="body users">
            {php //get sql="select * from table_group_member where groupid = $groupid " rows="10"}
            {get sql="select * from table_member" rows="8"}
            <li {if $n%4==1} class="clear" {/if}>
             <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}"><img src="{thumb(avatar($r[userid]),40,40)}" alt="{$r[username]}"  target="_blank" width="40" height="40"/></a>
             <br/><a href="{url("?module=space&userid=$r[userid]")}">{$r[username]}</a>
            </li>
          {/get}
          </ul>
        </div>
        
        <div class="mod">
            <div class="head"><span>这个小组的人也喜欢去</span></div>
            <ul class="body users">
            {get sql="select url,title,thumb from table_group where thumb <> '' order by updatetime desc" rows="8"}
            <li {if $n%4==1} class="clear" {/if}>
             <a href="{url($r[url])}" title="{$r[title]}">
             <img src="{php echo $r[thumb] ? thumb($r[thumb],40,40) : thumb('misc/nopic.gif',40,40)}" 
             alt="{$r[title]}"  target="_blank" width="40" height="40"/></a>
             <br/><a href="{url($r[url])}">{str_cut($r[title],15,'')}</a><br/>&nbsp;({rand(100,500)})
            </li>
          {/get}
          </ul>
        </div>
        
        <div class="mod">
            <div class="head">永久链接</div>
            <div class="body users">
          		本页永久链接:<a href="{url("?module=group&groupid=$groupid")}" target="_self">{url("?module=group&groupid=$groupid")}</a>
                <br/>
                feed:<a href="{url("?module=group&action=feed&groupid=$groupid")}" target="_blank">rss2.0</a>
            </div>
        </div>
         
    </div>
    
</div>


{template 'footer.html'}
